/**
 * descirption:创建子页面
 * author: roye
 * date: 20130510 11:46
 */
function createFrame(url)
{
	var s = '<iframe scrolling="no" frameborder="0"  src="'+url+'" style="width:100%;height:100%;"></iframe>';
	return s;
}
 
/**
 * descirption:创建tab页
 * author: roye
 * date: 20130510 11:48
 */ 
function createTab(title,url,plugin){

  if ($('#tabs').tabs('exists', title)) {
        $('#tabs').tabs('select', title);
    } else {
        $('#tabs').tabs('add', {
            title: title,
            content:createFrame(url),
            closable: true
        });
    }
	tabClose();
} 
 

/**
 * descirption:关闭tab页
 * author: roye
 * date: 20130510 11:48
 */  
function tabClose()
{
	/*双击关闭TAB选项卡*/
	$(".tabs-inner").dblclick(function(){
		var subtitle = $(this).children(".tabs-closable").text();
		$('#tabs').tabs('close',subtitle);
	})
} 




/**
 *创建通用DataGrid
 * author: roye
 * date: 20130510 18:52
 */
function createDataGrid(title,url,columns){

}










